package com.msb.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.stereotype.Component;
/*
* 注意：如果没有下面这三个注解，那么想实现Aop动态代理就必须在applicationContext.xml 文件中
* 添加 <aop:aspectj-autoproxy proxy-target-class="true"/>
*/
@Configuration//
@ComponentScan(basePackages = "com.msb")
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class SpringConfig {
}
